<?php 
defined('RUN_KATANA') or die('Restricted access');
if($com->Id > 0):
require_once('components/com_survey/validacija.php'); 
if($form == 'guide.php')
{
	$com->setButtonsHeader(array 
	(
		'0' => array 
		(	
			'title' => ucfirst($txt->getWord('proceed')),
			'href' => '',
			'onclick' => 'document.getElementById(\''.$com->Id.'_survey_guide\').submit();',
			'onmousedown' => 'document.getElementById(\''.$com->Id.'_survey_guide\').submit();',
		),
	));
}
require_once('components/common/com_top.php');
$error = $com->getFormError();
$info = $com->getFormInfo();
if($surveyCore->Survey)
{ require_once('components/com_survey/forms/'.$form); }
else
{ require_once('components/com_survey/list.php'); }
?>
<?php require_once('components/common/com_bot.php');  ?>
<?php endif; ?>
